/**
 * Created by Eoly on 2017/4/8.
 * Call http://palerock.cn
 */
// $.initSwiper($('.content'));
$(".swiper-container").swiper({
    autoplay:3500
});

$(document).on('infinite', '.infinite-scroll', function () {


    var ele = document.getElementsByClassName('content')[0];

    var $scope = angular.element(ele).scope();

    if ($scope.isOnloading) {
        return;

    }
    $scope.isOnloading = true;

    var page = ++$scope.page;

    $scope.getHomeTask(page);


});